home *** CD-ROM | disk | FTP | other *** search
- Short: handle COLS/LINES/SCREENMODE env-vars
- Uploader: marquardt_p@fhi-berlin.mpg.de (P.Marquardt)
- Author: marquardt_p@fhi-berlin.mpg.de (P.Marquardt, wwwutz@IRC)
- Type: util/cli
-
- Purpose: show/set/save $COLS/$LINES/$SCREENMODE vars
-
- ReSize is a small tool to calculate the number of rows/columns of the
- current active cli-window and set environment-vars accordingly.
- It was written due to the lack of such vars in some shells.
-
- ReSize makes your life easy ! Why ? Consider this:
-
- Shellwindow, size 720x443. Now you plan to start a program in this window
- which requires the local vars $LINES & $COLS to be set up correct (ALynx,
- for example). Ok, lets count columns... 1,2,3...85,86,87. Now the rows:
- 1,2,3...50,51,52,53. Now set the vars: "set lines 53" "set cols 87". Hmmm,
- maybe better setenv them: "setenv lines 53" "setenv cols 87". Hmm, I like
- to save them forever: "copy env:(cols|lines) envarc:". Btw, what was this
- cryptic hex-code of my current screenmode ? Hmmm... Where's my gun ?
- ">CLICK< >CLICK< >CLICK< ** KABOOM **"
-
- You would still be alive with ReSize!
-
- ReSize SET/S,SETENV/S,SAVE/S,VERBOSE=V/S
- SET/S set local
- SETENV/S set global ENV:
- SAVE/S save in ENVARC:
- VERBOSE=V/S be verbose
-
- SAS-C source included. Crippled SUXX-Ware.
-
- Major updates planned: ixemul.library-support, sound-fx, register.exe.
-